package com.cskaoyan.gateway.form.order;


import com.mall.order.dto.CartProductDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author: lsy
 * @class: CreateOrderForm
 */
@Data
@ApiModel
public class CreateOrderForm {

    @ApiModelProperty(name = "addressId", value = "地址id", example = "337")
    private Long addressId;
    @ApiModelProperty(name = "cartProductDttoList", value = "购物车list", example = "[{\"productId\":100055601,\"salePrice\":499,\"productNum\":2,\"limitNum\":100,\"checked\":\"true\",\"productName\":\"各色DNA检测套装\",\"productImg\":\"https://resource.smartisan.com/resource/9bffe702b1f0aea221b1f18ddf886958.jpg\"}]")
    private List<CartProductDto> cartProductDtoList;
    @ApiModelProperty(name = "orderTotal", value = "总金额", example = "998")
    private BigDecimal orderTotal;
    @ApiModelProperty(name = "streetName", value = "地址名称", example = "天津市-市辖区-南开区-232")
    private String streetName;
    @ApiModelProperty(name = "tel", value = "电话号码", example = "2222222")
    private String tel;
    @ApiModelProperty(name = "userName", value = "用户名", example = "张三")
    private String userName;


}
